package com.io.webflow.mapper;

import com.io.model.RegisterReq;
import com.io.model.Terminal;
import com.io.model.TerminalPrincipal;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Created by yangyx on 2016/7/28.
 */
@Repository
public interface RegisterMapper {

     RegisterReq findRegister(String vin);

     int addRegister(RegisterReq registerReq);
     /**
      *@Author yangyx 【yang_yaxu@launchdesign.com.cn】
      *@Date  2016/8/3 14:31
      *查询数据库中是否有当前对象
      */
     RegisterReq getUserByObj(RegisterReq obj);

     void convertNewPassword(int id);

     void updateNewPassword(@Param("newPassword")String newPassword, @Param("id") int id);
}
